
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont icon-home"></i>
                    <div class="name">home_hover</div>
                    <div class="fontclass">.icon-home</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zhengfangxingkuangkuang"></i>
                    <div class="name">正方形框框</div>
                    <div class="fontclass">.icon-zhengfangxingkuangkuang</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-weibiaoti11"></i>
                    <div class="name">line</div>
                    <div class="fontclass">.icon-weibiaoti11</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-share"></i>
                    <div class="name">share</div>
                    <div class="fontclass">.icon-share</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-global"></i>
                    <div class="name">global</div>
                    <div class="fontclass">.icon-global</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-icons14"></i>
                    <div class="name">曲线</div>
                    <div class="fontclass">.icon-icons14</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zoom"></i>
                    <div class="name">zoom</div>
                    <div class="fontclass">.icon-zoom</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-Pan"></i>
                    <div class="name">Pan</div>
                    <div class="fontclass">.icon-Pan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-clear"></i>
                    <div class="name">clear</div>
                    <div class="fontclass">.icon-clear</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-Zoom"></i>
                    <div class="name">Zoom</div>
                    <div class="fontclass">.icon-Zoom</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-marker"></i>
                    <div class="name">marker</div>
                    <div class="fontclass">.icon-marker</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-edit"></i>
                    <div class="name">edit</div>
                    <div class="fontclass">.icon-edit</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-yuanquan"></i>
                    <div class="name">圆圈</div>
                    <div class="fontclass">.icon-yuanquan</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-print"></i>
                    <div class="name">print</div>
                    <div class="fontclass">.icon-print</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zoomin"></i>
                    <div class="name">zoom in</div>
                    <div class="fontclass">.icon-zoomin</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-zoomout"></i>
                    <div class="name">zoom out</div>
                    <div class="fontclass">.icon-zoomout</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-measure_area"></i>
                    <div class="name">measure_area</div>
                    <div class="fontclass">.icon-measure_area</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-duobianxing"></i>
                    <div class="name">多边形</div>
                    <div class="fontclass">.icon-duobianxing</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-measure"></i>
                    <div class="name">measure</div>
                    <div class="fontclass">.icon-measure</div>
                </li>
            
                <li>
                <i class="icon iconfont icon-draw"></i>
                    <div class="name">draw</div>
                    <div class="fontclass">.icon-draw</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">icon-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
